package com.zijie.shoprbacapi.mapper;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

import com.zijie.rbac.model.RolePermMapping;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 功能：
 *
 * @author 臧金玉
 * <p>
 * <p>
 * Created by 臧金玉 on 2025/5/9 10:50, Modified by 臧金玉 on 2025/5/9 10:50
 */
@Mapper
public interface RolePermMappingDao extends BaseMapper<RolePermMapping> {
    default List<RolePermMapping> findAll(RolePermMapping rpm) {
        LambdaQueryWrapper<RolePermMapping> qw = Wrappers.lambdaQuery(rpm);
        return selectList(qw);
    }
}
